package com.my.webhr.pro.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.my.webhr.pro.mapper.LeaveinfoMapper;
import com.my.webhr.pro.pojo.Leaveinfo;
import com.my.webhr.pro.service.LeaveinfoService;
@Service
public class LeaveinfoServiceImpl implements LeaveinfoService {
	@Autowired
	private LeaveinfoMapper leaveinfoMapper;
	@Override
	public int deleteOne(int lId) {
		return leaveinfoMapper.deleteByPrimaryKey(lId);
	}

	@Override
	public int modifyOne(Leaveinfo leaveinfo) {
		return leaveinfoMapper.updateByPrimaryKeySelective(leaveinfo);
	}

	@Override
	public int updateOne(Leaveinfo leaveinfo) {
		return leaveinfoMapper.insert(leaveinfo);
	}
}
